import axios from "./axios";

export const getNewsList = (page,type) => {
    if(type !== undefined) {
        return axios.get(`/news/pageList?newsType=${type}&newsTitle=&page=${page}`);
    }
    return axios.get(`/news/pageList?newsType=&newsTitle=&page=${page}`);


    //axios.get('url',{params})  params:{page,newsType}
}